<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>丽江5日游攻略 - 云南深度徒步之旅</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #333;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            min-height: 100vh;
            background-attachment: fixed;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* 导航栏 */
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 30px rgba(0,0,0,0.1);
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #4a5568;
            font-weight: 600;
            transition: all 0.3s ease;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            position: relative;
        }

        .nav-links a:hover {
            color: #667eea;
            background: rgba(102, 126, 234, 0.1);
            transform: translateY(-2px);
        }

        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-links a:hover::before {
            width: 80%;
        }

        /* 英雄区域 */
        .hero {
            text-align: center;
            padding: 5rem 0;
            color: white;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.6), rgba(240, 147, 251, 0.5)), 
                        url('https://aos-comment.amap.com/B03780HQXM/comment/content_media_external_images_media_100000683_1726800514606_46507904.jpg');
            background-size: cover;
            background-position: center;
            border-radius: 25px;
            margin: 2rem 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
            pointer-events: none;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            font-weight: 700;
            background: linear-gradient(135deg, #fff, #f0f0f0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            z-index: 1;
        }

        .hero p {
            font-size: 1.3rem;
            margin-bottom: 2.5rem;
            opacity: 0.95;
            font-weight: 500;
            position: relative;
            z-index: 1;
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 2rem;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: bold;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        /* 天气信息 */
        .weather-section {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            border-radius: 25px;
            padding: 3rem;
            margin: 3rem 0;
            box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 25px rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.05);
            position: relative;
            overflow: hidden;
        }

        .weather-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 25px 25px 0 0;
        }

        .weather-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .weather-card {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            color: #2d3748;
            padding: 1.5rem;
            border-radius: 15px;
            text-align: center;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 4px 15px rgba(102, 126, 234, 0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .weather-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .weather-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 8px 25px rgba(102, 126, 234, 0.15);
        }

        /* 行程时间线 */
        .timeline-section {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            border-radius: 25px;
            padding: 3rem;
            margin: 3rem 0;
            box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 25px rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.05);
            position: relative;
            overflow: hidden;
        }

        .timeline-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 25px 25px 0 0;
        }

        .timeline {
            position: relative;
            padding-left: 3rem;
            margin-top: 1rem;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
            border-radius: 2px;
            box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 3rem;
            padding-left: 2.5rem;
            transition: all 0.3s ease;
        }

        .timeline-item:hover {
            transform: translateX(10px);
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -0.75rem;
            top: 1rem;
            width: 1.5rem;
            height: 1.5rem;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 50%;
            border: 4px solid white;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 8px 20px rgba(0,0,0,0.15);
            z-index: 2;
            transition: all 0.3s ease;
        }

        .timeline-item:hover::before {
            transform: scale(1.2);
            box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.3), 0 12px 30px rgba(0,0,0,0.2);
        }

        .timeline-content {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            padding: 2rem;
            border-radius: 20px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 4px 15px rgba(102, 126, 234, 0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .timeline-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(180deg, #667eea, #764ba2);
            border-radius: 0 2px 2px 0;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 8px 25px rgba(102, 126, 234, 0.15);
        }

        .timeline-date {
            font-weight: 700;
            font-size: 1.1em;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
        }

        .timeline-date::before {
            content: '🗓️';
            margin-right: 12px;
            font-size: 1.4em;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        }

        .timeline-content h3 {
            color: #2d3748;
            margin: 0 0 1.5rem 0;
            font-size: 1.4em;
            line-height: 1.4;
            font-weight: 700;
            background: linear-gradient(135deg, #2d3748, #4a5568);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .timeline-content p {
            color: #4a5568;
            line-height: 1.8;
            margin: 0 0 1rem 0;
            font-size: 0.95em;
        }

        .timeline-content p strong {
            color: #667eea;
            font-weight: 600;
        }

        .attraction-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 1.5rem;
        }

        .tag {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 8px 18px;
            border-radius: 25px;
            font-size: 0.85em;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
            border: 1px solid rgba(255,255,255,0.2);
            cursor: pointer;
        }

        .tag:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
        }

        /* 景点卡片 */
        .attractions-section {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            margin: 2rem 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .attractions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .attraction-card {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 4px 15px rgba(102, 126, 234, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid rgba(102, 126, 234, 0.05);
            position: relative;
        }

        .attraction-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            z-index: 1;
        }

        .attraction-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 8px 25px rgba(102, 126, 234, 0.15);
        }

        .attraction-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .attraction-card:hover .attraction-image {
            transform: scale(1.05);
        }

        .attraction-content {
            padding: 2rem;
        }

        .attraction-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #2d3748;
            background: linear-gradient(135deg, #2d3748, #4a5568);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .attraction-description {
            color: #4a5568;
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        .attraction-tags {
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
        }

        .tag {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
            border: 1px solid rgba(255,255,255,0.2);
        }

        .tag:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
        }

        /* 路线图 */
        .route-section {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            margin: 2rem 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .route-map {
            width: 100%;
            min-height: 400px;
            background: #f8f9fa;
            border-radius: 10px;
            margin: 1rem 0;
            position: relative;
            overflow: hidden;
            border: 2px dashed #ddd;
        }

        .route-map:hover {
            border-color: #667eea;
        }

        .route-button {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            margin: 0.5rem;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .route-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .route-button:active {
            transform: translateY(0);
        }

        .route-info-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin: 10px 0;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-left: 4px solid #667eea;
        }

        .route-info-card h4 {
            color: #667eea;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .route-info-card p {
            margin: 8px 0;
            color: #555;
        }

        .route-info-card strong {
            color: #333;
        }

        /* 费用明细 */
        .cost-section {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            border-radius: 25px;
            padding: 3rem;
            margin: 3rem 0;
            box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 25px rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.05);
            position: relative;
            overflow: hidden;
        }

        .cost-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 25px 25px 0 0;
        }

        .cost-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin-top: 2rem;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        .cost-table th,
        .cost-table td {
            padding: 1.5rem;
            text-align: left;
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        }

        .cost-table th {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            font-weight: 700;
            font-size: 1.1em;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .cost-table tr:hover {
            background: rgba(102, 126, 234, 0.05);
            transition: all 0.3s ease;
        }

        .cost-table tr:last-child {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            font-weight: 700;
            color: #667eea;
        }

        .cost-table tr:last-child:hover {
            background: linear-gradient(135deg, #e9ecef, #dee2e6);
        }

        /* 徒步路线概览 */
        .hiking-overview-section {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            border-radius: 25px;
            padding: 3rem;
            margin: 3rem 0;
            box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 25px rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.05);
            position: relative;
            overflow: hidden;
        }

        .hiking-overview-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 25px 25px 0 0;
        }

        .hiking-routes-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 2rem 0;
        }

        .hiking-route-item {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            border-radius: 20px;
            padding: 2rem;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 4px 15px rgba(102, 126, 234, 0.08);
            transition: all 0.3s ease;
            display: flex;
            align-items: flex-start;
            gap: 1.5rem;
        }

        .hiking-route-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 8px 25px rgba(102, 126, 234, 0.15);
        }

        .route-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            flex-shrink: 0;
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }

        .route-info h3 {
            color: #333;
            margin-bottom: 0.5rem;
            font-size: 1.2rem;
            font-weight: 700;
        }

        .route-info p {
            color: #666;
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .route-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .route-stats span {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .route-stats i {
            font-size: 0.8rem;
        }

        .hiking-actions {
            text-align: center;
            margin-top: 3rem;
            padding: 2rem;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
            border-radius: 20px;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .view-tracks-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.8rem;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 1.2rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
            margin-bottom: 1rem;
        }

        .view-tracks-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
            color: white;
            text-decoration: none;
        }

        .hiking-tip {
            color: #666;
            font-size: 0.95rem;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .hiking-tip i {
            color: #667eea;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .attractions-grid {
                grid-template-columns: 1fr;
            }

            .weather-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 1rem;
            }
            
            .weather-card {
                padding: 1rem;
            }

            .hiking-routes-summary {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .hiking-route-item {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .route-icon {
                align-self: center;
            }

            .route-stats {
                justify-content: center;
            }

            .view-tracks-btn {
                padding: 1rem 2rem;
                font-size: 1rem;
            }

            .timeline-item {
                padding-left: 2rem;
            }

            .timeline-item::before {
                left: -0.5rem;
                width: 1.2rem;
                height: 1.2rem;
            }

            .timeline-content {
                padding: 1.5rem;
            }

            .cost-table th,
            .cost-table td {
                padding: 1rem;
                font-size: 0.9em;
            }

            .container {
                padding: 10px;
            }

            .timeline-section,
            .cost-section,
            .weather-section {
                padding: 2rem;
                margin: 2rem 0;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .timeline-content h3 {
                font-size: 1.2em;
            }

            .attraction-title {
                font-size: 1.1rem;
            }

            .weather-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.8rem;
            }
            
            .weather-card {
                padding: 0.8rem;
            }
        }
        
        @media (max-width: 320px) {
            .weather-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 轨迹路线图样式 */
        .track-section {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            border-radius: 25px;
            padding: 3rem;
            margin: 3rem 0;
            box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 8px 25px rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.05);
            position: relative;
            overflow: hidden;
        }

        .track-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 25px 25px 0 0;
        }

        .track-routes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .track-route-card {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            border-radius: 20px;
            padding: 1.5rem;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05), 0 4px 15px rgba(102, 126, 234, 0.08);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .track-route-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .track-route-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 8px 25px rgba(102, 126, 234, 0.15);
        }

        .route-card-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .route-day {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: bold;
            font-size: 0.9rem;
        }

        .route-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: #2d3748;
        }

        .route-card-image {
            margin-bottom: 1rem;
        }

        .route-stats {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .route-stat {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(102, 126, 234, 0.1);
            padding: 0.5rem 0.8rem;
            border-radius: 15px;
            font-size: 0.9rem;
            color: #667eea;
        }

        .route-stat i {
            font-size: 1rem;
        }

        .route-description {
            margin-bottom: 1rem;
        }

        .route-description p {
            color: #4a5568;
            line-height: 1.6;
            margin: 0;
        }

        .route-tags {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .route-tag {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .route-card-action {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 0.8rem;
            border-radius: 15px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .route-card-action:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
        }

        .track-map-display {
            margin-top: 2rem;
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }

        .track-map-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }

        .track-map-header h3 {
            margin: 0;
            font-size: 1.3rem;
        }

        .close-track-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 0.5rem;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-track-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .track-map-footer {
            padding: 1.5rem;
            background: #f8f9fa;
            border-top: 1px solid rgba(102, 126, 234, 0.1);
        }

        .track-map-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .full-track-btn {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 25px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
        }

        .full-track-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(40, 167, 69, 0.4);
            color: white;
            text-decoration: none;
        }

        .download-track-btn {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 25px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .download-track-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
        }

        .share-track-btn {
            background: linear-gradient(135deg, #fd7e14, #e83e8c);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 25px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(253, 126, 20, 0.3);
        }

        .share-track-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(253, 126, 20, 0.4);
        }

        .track-map-info {
            text-align: center;
            color: #6c757d;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .track-map-info p {
            margin: 0;
        }

        .track-map-info i {
            color: #667eea;
            margin-right: 0.5rem;
        }

        .track-container {
            margin-top: 2rem;
        }

        .track-info {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .track-stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }

        .stat-item {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            padding: 1.5rem;
            border-radius: 15px;
            text-align: center;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 8px 25px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }

        .stat-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }

        .stat-item i {
            font-size: 2rem;
            color: #667eea;
            margin-bottom: 0.5rem;
            display: block;
        }

        .stat-label {
            display: block;
            font-size: 0.9rem;
            color: #718096;
            margin-bottom: 0.5rem;
        }

        .stat-value {
            display: block;
            font-size: 1.2rem;
            font-weight: bold;
            color: #2d3748;
        }

        .track-description {
            background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
            padding: 2rem;
            border-radius: 15px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            box-shadow: 0 8px 25px rgba(0,0,0,0.05);
        }

        .track-description h3 {
            color: #667eea;
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }

        .track-description ul {
            list-style: none;
            padding: 0;
        }

        .track-description li {
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
            color: #4a5568;
        }

        .track-description li:last-child {
            border-bottom: none;
        }

        .track-map-container {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            margin-bottom: 2rem;
        }

        .track-map-container iframe {
            display: block;
            border: none;
            width: 100%;
            height: 600px;
        }

        .track-map-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: opacity 0.3s ease;
        }

        .track-map-overlay.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .overlay-content {
            text-align: center;
            color: #667eea;
        }

        .overlay-content i {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(102, 126, 234, 0.2);
            border-top: 4px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 1rem auto 0;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .track-error {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 20;
        }

        .error-content {
            text-align: center;
            color: #e53e3e;
            padding: 2rem;
            max-width: 400px;
        }

        .error-content i {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
        }

        .error-content h3 {
            margin-bottom: 1rem;
            color: #e53e3e;
        }

        .error-content p {
            margin-bottom: 1.5rem;
            color: #4a5568;
        }

        .error-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .error-btn {
            background: linear-gradient(135deg, #e53e3e, #c53030);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 20px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
        }

        .error-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
            color: white;
            text-decoration: none;
        }

        .track-preview {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        }

        .preview-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        .preview-content {
            text-align: center;
            padding: 2rem;
        }

        .preview-content i {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
        }

        .preview-content h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .preview-content p {
            margin-bottom: 1.5rem;
            opacity: 0.9;
        }

        .preview-info {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            margin-bottom: 2rem;
            align-items: center;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.1);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            backdrop-filter: blur(10px);
        }

        .info-item i {
            font-size: 1rem;
            margin: 0;
        }

        .info-item span {
            font-size: 0.9rem;
            font-weight: 500;
        }

        .preview-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid white;
            padding: 1rem 2rem;
            border-radius: 25px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .preview-btn:hover {
            background: white;
            color: #667eea;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            text-decoration: none;
        }

        .track-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .track-action-btn {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 25px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .track-action-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
            color: white;
            text-decoration: none;
        }

        .track-action-btn i {
            font-size: 1.1rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .track-routes-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .track-route-card {
                padding: 1rem;
            }

            .route-stats {
                flex-direction: column;
                gap: 0.5rem;
            }

            .track-map-container iframe {
                height: 400px;
            }

            .track-map-actions {
                flex-direction: column;
                align-items: center;
            }

            .full-track-btn,
            .download-track-btn,
            .share-track-btn {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .track-routes-grid {
                grid-template-columns: 1fr;
            }

            .track-map-container iframe {
                height: 300px;
            }

            .route-card-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }

            .route-stats {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.6s ease-out;
        }

        /* 滚动指示器 */
        .scroll-indicator {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            z-index: 1001;
            transition: width 0.3s;
        }
    </style>
</head>
<body>
    <div class="scroll-indicator"></div>
    
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-content">
            <div class="logo">
                <i class="fas fa-mountain"></i> 丽江攻略
            </div>
            <div class="nav-links">
                <a href="#overview">行程概览</a>
                <a href="#weather">天气信息</a>
                <a href="#attractions">景点推荐</a>
                <a href="#route">路线规划</a>
                <a href="#cost">费用明细</a>
                <a href="#hiking-overview">徒步路线</a>
            </div>
        </div>
    </nav>

    <div class="container">
        <!-- 英雄区域 -->
        <section class="hero fade-in-up">
            <h1>丽江5日游攻略</h1>
            <p>云南深度徒步之旅 · 虎跳峡 · 哈巴雪山 · 香格里拉</p>
            <a href="#overview" class="cta-button">
                <i class="fas fa-map-marked-alt"></i> 开始探索
            </a>
        </section>

        <!-- 行程概览 -->
        <section id="overview" class="timeline-section fade-in-up">
            <h2><i class="fas fa-calendar-alt"></i> 行程概览</h2>
            <div class="timeline">
                <div class="timeline-item">
                    <div class="timeline-content">
                        <div class="timeline-date">Day 1 - 丽江集合（海拔2400m）</div>
                        <h3>杭州→丽江三义机场→四方街民宿→白沙古镇</h3>
                        <p><strong>行程：</strong>早上9点抵达丽江三义机场，入住四方街附近民宿（推荐"丽江云上四季"）。午后前往白沙古镇体验扎染工艺、品尝普洱咖啡，晚上返回古城享用腊排骨火锅。</p>
                        <p><strong>住宿：</strong>四方街民宿，150元/晚</p>
                        <p><strong>费用：</strong>白沙拼车往返40元/人，晚餐60元/人</p>
                        <p><strong>9月提示：</strong>四方街夜游人潮多，21:00后较安静；白沙古镇咖啡馆二楼可远眺玉龙雪山</p>
                        <div class="attraction-tags">
                            <span class="tag">集合日</span>
                            <span class="tag">文化体验</span>
                            <span class="tag">美食</span>
                        </div>
                    </div>
                </div>

                <div class="timeline-item">
                    <div class="timeline-content">
                        <div class="timeline-date">Day 2 - 虎跳峡高路徒步（经典精华段）</div>
                        <h3>丽江→纳西雅阁→Halfway爽死你阳台→一线天→哈巴村</h3>
                        <p><strong>行程：</strong>7:00丽江拼车→纳西雅阁（车程2h，50元/人）→9:00徒步起点→28道拐（陡坡1.5h）→茶马客栈→Halfway爽死你阳台→瀑布咖啡→13:00抵Tina's→坐车至一线天入口→下中虎跳（门票15元×3次）→天梯→张老师客栈→哈巴村</p>
                        <p><strong>住宿：</strong>哈巴村"久航户外"民宿，100元/人含早</p>
                        <p><strong>费用：</strong>虎跳峡门票45元，Tina's接驳车10元，晚餐40元/人</p>
                        <p><strong>9月提示：</strong>瀑布段水雾大，电子设备用防水袋；午餐自备能量棒，Tina's饭菜较差</p>
                        <div class="attraction-tags">
                            <span class="tag">徒步</span>
                            <span class="tag">峡谷</span>
                            <span class="tag">挑战</span>
                        </div>
                    </div>
                </div>

                <div class="timeline-item">
                    <div class="timeline-content">
                        <div class="timeline-date">Day 3 - 哈巴西坡-黑海湖（海拔4100m）</div>
                        <h3>哈巴雪山→兰花坪→黑海湖→香格里拉</h3>
                        <p><strong>行程：</strong>7:00轻装出发→兰花坪（高山草甸）→黑海湖（午餐休憩）→环湖拍杜鹃倒影→15:00前下撤→19:00返哈巴村→拼车至香格里拉（车程2.5h）</p>
                        <p><strong>住宿：</strong>香格里拉舒适型酒店（推荐"扎西德勒"，240元/晚，地暖+供氧）</p>
                        <p><strong>费用：</strong>骡马300元/天，拼车120元/人，晚餐藏餐60元/人</p>
                        <p><strong>9月提示：</strong>黑海湖午后易起雾，带救生毯备用；下山穿高帮防滑鞋（泥泞路）</p>
                        <div class="attraction-tags">
                            <span class="tag">雪山</span>
                            <span class="tag">高原</span>
                            <span class="tag">花海</span>
                        </div>
                    </div>
                </div>

                <div class="timeline-item">
                    <div class="timeline-content">
                        <div class="timeline-date">Day 4 - 阿布吉措徒步+独克宗古城（海拔3300-4200m）</div>
                        <h3>阿布吉措徒步→独克宗古城→藏式美食</h3>
                        <p><strong>行程：</strong>7:30拼车至阿布吉措垭口（车程1h，150元/车）→9:00-16:00徒步（森林溪流→碎石坡→高山牧场→圣湖）→傍晚逛独克宗古城：转经筒、唐卡体验→扎雅土司藏餐（牦牛肉火锅必点）</p>
                        <p><strong>住宿：</strong>香格里拉酒店</p>
                        <p><strong>费用：</strong>向导200元/人，摩托车应急费100元（可选），晚餐80元/人</p>
                        <p><strong>9月提示：</strong>阿布吉措第四段易高反，备氧气罐；藏餐厅提前订位，旺季排队长</p>
                        <div class="attraction-tags">
                            <span class="tag">圣湖</span>
                            <span class="tag">古城</span>
                            <span class="tag">藏族文化</span>
                        </div>
                    </div>
                </div>

                <div class="timeline-item">
                    <div class="timeline-content">
                        <div class="timeline-date">Day 5 - 香格里拉→返程（备选二选一）</div>
                        <h3>Option A（轻松版）vs Option B（深度版）</h3>
                        <p><strong>Option A（轻松版）：</strong>5:30包车至白沙古镇（车程3h）→7:00观玉龙雪山日照金山→9:00逛古镇买特产→12:00丽江机场返杭州</p>
                        <p><strong>Option B（深度版）：</strong>续住香格里拉，拼车至老药山（高山牧场采菌子）→下午参加石卡雪山音乐嘉年华（9.29开幕有民族表演）→夜机返杭</p>
                        <p><strong>费用：</strong>白沙包车400元/车，老药山拼车80元/人，音乐节门票免费</p>
                        <div class="attraction-tags">
                            <span class="tag">日出</span>
                            <span class="tag">购物</span>
                            <span class="tag">返程</span>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 天气信息 -->
        <section id="weather" class="weather-section fade-in-up">
            <h2><i class="fas fa-cloud-sun"></i> 丽江天气信息</h2>
            <p>9月丽江天气宜人，日均温14-23℃，早晚温差大，建议携带冲锋衣和抓绒衣。</p>
            <div class="weather-grid">
                <div class="weather-card">
                    <h3>Day 1</h3>
                    <i class="fas fa-sun" style="font-size: 2rem; margin: 1rem 0;"></i>
                    <p>25°C / 15°C</p>
                    <p>小雨转多云</p>
                </div>
                <div class="weather-card">
                    <h3>Day 2</h3>
                    <i class="fas fa-cloud-rain" style="font-size: 2rem; margin: 1rem 0;"></i>
                    <p>24°C / 16°C</p>
                    <p>小雨</p>
                </div>
                <div class="weather-card">
                    <h3>Day 3</h3>
                    <i class="fas fa-cloud" style="font-size: 2rem; margin: 1rem 0;"></i>
                    <p>24°C / 16°C</p>
                    <p>多云</p>
                </div>
                <div class="weather-card">
                    <h3>Day 4</h3>
                    <i class="fas fa-cloud-showers-heavy" style="font-size: 2rem; margin: 1rem 0;"></i>
                    <p>23°C / 14°C</p>
                    <p>中雨</p>
                </div>
                <div class="weather-card">
                    <h3>Day 5</h3>
                    <i class="fas fa-sun" style="font-size: 2rem; margin: 1rem 0;"></i>
                    <p>25°C / 15°C</p>
                    <p>晴天</p>
                </div>
            </div>
        </section>

        <!-- 景点推荐 -->
        <section id="attractions" class="attractions-section fade-in-up">
            <h2><i class="fas fa-map-marker-alt"></i> 精选景点</h2>
            <div class="attractions-grid">
                <div class="attraction-card">
                    <img src="http://store.is.autonavi.com/showpic/7eaac3f5eb4801471f47131152c63a2b" alt="丽江古城四方街" class="attraction-image">
                    <div class="attraction-content">
                        <div class="attraction-title">丽江古城四方街</div>
                        <div class="attraction-description">世界文化遗产，纳西族古城的中心，石板路、小桥流水、古建筑群，感受浓郁的少数民族文化氛围。</div>
                        <div class="attraction-tags">
                            <span class="tag">古城</span>
                            <span class="tag">文化遗产</span>
                            <span class="tag">纳西文化</span>
                        </div>
                    </div>
                </div>

                <div class="attraction-card">
                    <img src="http://store.is.autonavi.com/showpic/eee4299d485c00aef3770e6a68a30103" alt="白沙古镇" class="attraction-image">
                    <div class="attraction-content">
                        <div class="attraction-title">白沙古镇</div>
                        <div class="attraction-description">纳西族发源地，保存完好的古建筑群，可以体验扎染工艺，品尝普洱咖啡，远眺玉龙雪山。</div>
                        <div class="attraction-tags">
                            <span class="tag">古镇</span>
                            <span class="tag">手工艺</span>
                            <span class="tag">雪山观景</span>
                        </div>
                    </div>
                </div>

                <div class="attraction-card">
                    <img src="http://store.is.autonavi.com/showpic/0a7235ff7951ad0c18866c4482f46e96" alt="虎跳峡" class="attraction-image">
                    <div class="attraction-content">
                        <div class="attraction-title">虎跳峡</div>
                        <div class="attraction-description">世界最深的峡谷之一，金沙江在此奔腾咆哮，徒步路线惊险刺激，是户外爱好者的天堂。</div>
                        <div class="attraction-tags">
                            <span class="tag">峡谷</span>
                            <span class="tag">徒步</span>
                            <span class="tag">挑战</span>
                        </div>
                    </div>
                </div>

                <div class="attraction-card">
                    <img src="http://store.is.autonavi.com/showpic/dc2e355dd935b96f5a2e4f78c0cbccad" alt="哈巴雪山" class="attraction-image">
                    <div class="attraction-content">
                        <div class="attraction-title">哈巴雪山</div>
                        <div class="attraction-description">海拔5396米，被称为"东方阿尔卑斯"，黑海湖周边杜鹃花海盛开，是摄影爱好者的天堂。</div>
                        <div class="attraction-tags">
                            <span class="tag">雪山</span>
                            <span class="tag">花海</span>
                            <span class="tag">摄影</span>
                        </div>
                    </div>
                </div>

                <div class="attraction-card">
                    <img src="http://store.is.autonavi.com/showpic/606491c683e69aaeec53577d8c6aa2e3" alt="独克宗古城" class="attraction-image">
                    <div class="attraction-content">
                        <div class="attraction-title">独克宗古城</div>
                        <div class="attraction-description">香格里拉的心脏，藏式建筑群，转经筒、唐卡艺术，体验浓郁的藏族文化氛围。</div>
                        <div class="attraction-tags">
                            <span class="tag">古城</span>
                            <span class="tag">藏族文化</span>
                            <span class="tag">宗教</span>
                        </div>
                    </div>
                </div>

                <div class="attraction-card">
                    <img src="https://aos-comment.amap.com/B0377004JZ/comment/content_media_external_images_media_100000959_1730773695144_47119914.jpg" alt="阿布吉措" class="attraction-image">
                    <div class="attraction-content">
                        <div class="attraction-title">阿布吉措</div>
                        <div class="attraction-description">海拔4200米的高山圣湖，湖水清澈如镜，周围高山牧场风光旖旎，是徒步和摄影的绝佳地点。</div>
                        <div class="attraction-tags">
                            <span class="tag">圣湖</span>
                            <span class="tag">高原</span>
                            <span class="tag">徒步</span>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 路线规划 -->
        <section id="route" class="route-section fade-in-up">
            <h2><i class="fas fa-route"></i> 路线规划</h2>
            <div class="route-map" id="routeMap">
                <div id="routeResult" style="display: none; padding: 20px; background: white; border-radius: 10px; margin: 10px 0;">
                    <h3 id="routeTitle" style="color: #667eea; margin-bottom: 15px;"></h3>
                    <div id="routeDetails" style="line-height: 1.8;"></div>
                    <div id="routeMapLink" style="margin-top: 15px;">
                        <a href="#" id="mapLink" target="_blank" style="background: #667eea; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; display: inline-block; margin-right: 10px;">
                            <i class="fas fa-map-marked-alt"></i> 高德地图导航
                        </a>
                        <a href="#" id="webMapLink" target="_blank" style="background: #28a745; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; display: inline-block; margin-right: 10px;">
                            <i class="fas fa-globe"></i> 网页版地图
                        </a>
                        <a href="#" id="searchLink" target="_blank" style="background: #ffc107; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px; display: inline-block;">
                            <i class="fas fa-search"></i> 搜索路线
                        </a>
                    </div>
                </div>
                <div id="routeLoading" style="display: none; text-align: center; padding: 40px;">
                    <i class="fas fa-spinner fa-spin" style="font-size: 2rem; color: #667eea;"></i>
                    <p style="margin-top: 10px; color: #666;">正在规划路线...</p>
                </div>
                <div id="routePlaceholder" style="text-align: center; padding: 40px; color: #666;">
                    <i class="fas fa-map-marked-alt" style="font-size: 3rem; color: #ddd; margin-bottom: 20px;"></i>
                    <p>点击下方按钮开始路线规划</p>
                </div>
            </div>
            <div style="margin-top: 1rem; text-align: center;">
                <button class="route-button" onclick="showRoute('丽江古城', '虎跳峡')">
                    <i class="fas fa-route"></i> 丽江→虎跳峡
                </button>
                <button class="route-button" onclick="showRoute('虎跳峡', '哈巴雪山')">
                    <i class="fas fa-mountain"></i> 虎跳峡→哈巴雪山
                </button>
                <button class="route-button" onclick="showRoute('哈巴雪山', '香格里拉')">
                    <i class="fas fa-city"></i> 哈巴雪山→香格里拉
                </button>
                <button class="route-button" onclick="showRoute('香格里拉', '阿布吉措')">
                    <i class="fas fa-water"></i> 香格里拉→阿布吉措
                </button>
            </div>
        </section>

        <!-- 费用明细 -->
        <section id="cost" class="cost-section fade-in-up">
            <h2><i class="fas fa-coins"></i> 费用明细</h2>
            <table class="cost-table">
                <thead>
                    <tr>
                        <th>项目</th>
                        <th>费用（元）</th>
                        <th>说明</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>机票（杭州-丽江往返）</td>
                        <td>¥1200-1500</td>
                        <td>提前预订，9月价格相对稳定</td>
                    </tr>
                    <tr>
                        <td>住宿（4晚）</td>
                        <td>¥730</td>
                        <td>Day1民宿150元 + Day2哈巴村100元 + Day3-4香格里拉酒店480元</td>
                    </tr>
                    <tr>
                        <td>交通费用</td>
                        <td>¥800-1000</td>
                        <td>含拼车/包车、接驳费（白沙40+虎跳峡50+哈巴120+阿布吉措150+其他）</td>
                    </tr>
                    <tr>
                        <td>餐饮费用</td>
                        <td>¥500-600</td>
                        <td>藏餐、自备干粮（Day1-5餐饮费用合计）</td>
                    </tr>
                    <tr>
                        <td>门票及向导</td>
                        <td>¥400-500</td>
                        <td>虎跳峡门票45元 + 阿布吉措向导200元 + 徒步费 + 其他</td>
                    </tr>
                    <tr>
                        <td>其他费用</td>
                        <td>¥200-300</td>
                        <td>骡马300元 + 摩托车应急费100元 + 纪念品、保险等</td>
                    </tr>
                    <tr style="background: #f8f9fa; font-weight: bold;">
                        <td>总计</td>
                        <td>¥2300-2900</td>
                        <td>人均费用（不含往返机票，性价比极高）</td>
                    </tr>
                </tbody>
            </table>
            
            <div style="margin-top: 2rem; padding: 1.5rem; background: #f8f9fa; border-radius: 10px; border-left: 4px solid #667eea;">
                <h3 style="color: #667eea; margin-bottom: 1rem;"><i class="fas fa-info-circle"></i> 费用说明</h3>
                <ul style="line-height: 1.8; color: #555;">
                    <li><strong>住宿费用：</strong>经济型民宿+舒适酒店组合，Day1-2住民宿体验当地文化，Day3-4住酒店享受舒适设施</li>
                    <li><strong>交通费用：</strong>主要采用拼车方式，既经济又环保，部分路段包车确保行程灵活性</li>
                    <li><strong>餐饮费用：</strong>包含当地特色美食如腊排骨、藏餐、牦牛肉火锅等，部分午餐自备干粮</li>
                    <li><strong>门票向导：</strong>虎跳峡门票分三次收取，阿布吉措建议请向导确保安全</li>
                    <li><strong>其他费用：</strong>包含骡马租赁、应急费用、纪念品购买等</li>
                </ul>
            </div>
            
            <div style="margin-top: 1.5rem; padding: 1.5rem; background: linear-gradient(135deg, #667eea, #764ba2); color: white; border-radius: 10px;">
                <h3 style="margin-bottom: 1rem;"><i class="fas fa-star"></i> 性价比优势</h3>
                <ul style="line-height: 1.8;">
                    <li>5天深度游人均仅2300-2900元，性价比极高</li>
                    <li>包含虎跳峡、哈巴雪山、阿布吉措等经典景点</li>
                    <li>住宿从民宿到酒店，体验多样化</li>
                    <li>交通采用拼车+包车组合，经济实惠</li>
                    <li>餐饮包含当地特色美食，文化体验丰富</li>
                </ul>
            </div>
        </section>

        <!-- 徒步路线概览 -->
        <section id="hiking-overview" class="hiking-overview-section fade-in-up">
            <h2><i class="fas fa-mountain"></i> 徒步路线概览</h2>
            <p>本次丽江5日游包含3条经典徒步路线，每条路线都有详细的GPS轨迹数据。点击下方按钮可直接跳转到徒步轨迹路线图查看详细信息。</p>
            
            <div class="hiking-routes-summary">
                <div class="hiking-route-item">
                    <div class="route-icon">
                        <i class="fas fa-mountain"></i>
                    </div>
                    <div class="route-info">
                        <h3>Day 2 - 虎跳峡高路徒步</h3>
                        <p>世界最深的峡谷之一，金沙江奔腾咆哮，徒步路线惊险刺激</p>
                        <div class="route-stats">
                            <span><i class="fas fa-route"></i> 约15公里</span>
                            <span><i class="fas fa-clock"></i> 6-8小时</span>
                            <span><i class="fas fa-mountain"></i> 最高1800m</span>
                        </div>
                    </div>
                </div>
                
                <div class="hiking-route-item">
                    <div class="route-icon">
                        <i class="fas fa-snowflake"></i>
                    </div>
                    <div class="route-info">
                        <h3>Day 3 - 哈巴西坡-黑海湖</h3>
                        <p>海拔5396米，被称为"东方阿尔卑斯"，黑海湖周边杜鹃花海盛开</p>
                        <div class="route-stats">
                            <span><i class="fas fa-route"></i> 约25公里</span>
                            <span><i class="fas fa-clock"></i> 8-10小时</span>
                            <span><i class="fas fa-mountain"></i> 最高4415m</span>
                        </div>
                    </div>
                </div>
                
                <div class="hiking-route-item">
                    <div class="route-icon">
                        <i class="fas fa-water"></i>
                    </div>
                    <div class="route-info">
                        <h3>Day 4 - 阿布吉措徒步</h3>
                        <p>海拔4200米的高山圣湖，湖水清澈如镜，周围高山牧场风光旖旎</p>
                        <div class="route-stats">
                            <span><i class="fas fa-route"></i> 约12公里</span>
                            <span><i class="fas fa-clock"></i> 6-7小时</span>
                            <span><i class="fas fa-mountain"></i> 最高4200m</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="hiking-actions">
                <a href="#track-map" class="view-tracks-btn">
                    <i class="fas fa-map-marked-alt"></i>
                    查看详细徒步轨迹路线图
                </a>
                <p class="hiking-tip">
                    <i class="fas fa-info-circle"></i>
                    点击上方按钮可查看包含GPS轨迹、海拔变化、标注点等详细信息的徒步路线图
                </p>
            </div>
        </section>

        <!-- 徒步轨迹路线图 -->
        <section id="track-map" class="track-section fade-in-up">
            <h2><i class="fas fa-route"></i> 徒步轨迹路线图</h2>
            <p>以下是本次丽江5日游的详细徒步轨迹路线图，点击下方卡片查看每天的徒步路线详情。</p>
            
            <div class="track-routes-grid">
                <!-- Day 2 虎跳峡轨迹 -->
                <div class="track-route-card" onclick="showTrackRoute('tiger-leap', 'https://www.2bulu.com/track/t-vm8p0U%2BnQVrp%252FR2KBg5Tzw%253D%253D.htm')">
                    <div class="route-card-header">
                        <div class="route-day">Day 2</div>
                        <div class="route-title">虎跳峡高路徒步</div>
                    </div>
                    <div class="route-card-image">
                        <img src="http://store.is.autonavi.com/showpic/0a7235ff7951ad0c18866c4482f46e96" alt="虎跳峡" style="width: 100%; height: 200px; object-fit: cover; border-radius: 10px;">
                    </div>
                    <div class="route-card-info">
                        <div class="route-stats">
                            <div class="route-stat">
                                <i class="fas fa-route"></i>
                                <span>约15公里</span>
                            </div>
                            <div class="route-stat">
                                <i class="fas fa-mountain"></i>
                                <span>最高1800m</span>
                            </div>
                            <div class="route-stat">
                                <i class="fas fa-clock"></i>
                                <span>6-8小时</span>
                            </div>
                        </div>
                        <div class="route-description">
                            <p>世界最深的峡谷之一，金沙江奔腾咆哮，徒步路线惊险刺激，是户外爱好者的天堂。</p>
                        </div>
                        <div class="route-tags">
                            <span class="route-tag">峡谷</span>
                            <span class="route-tag">徒步</span>
                            <span class="route-tag">挑战</span>
                        </div>
                    </div>
                    <div class="route-card-action">
                        <i class="fas fa-external-link-alt"></i>
                        <span>点击查看轨迹</span>
                    </div>
                </div>

                <!-- Day 3 哈巴西坡轨迹 -->
                <div class="track-route-card" onclick="showTrackRoute('haba-west', 'https://www.2bulu.com/track/t-dZgPE9MXUF7p%252FR2KBg5Tzw%253D%253D.htm')">
                    <div class="route-card-header">
                        <div class="route-day">Day 3</div>
                        <div class="route-title">哈巴西坡-黑海湖</div>
                    </div>
                    <div class="route-card-image">
                        <img src="http://store.is.autonavi.com/showpic/dc2e355dd935b96f5a2e4f78c0cbccad" alt="哈巴雪山" style="width: 100%; height: 200px; object-fit: cover; border-radius: 10px;">
                    </div>
                    <div class="route-card-info">
                        <div class="route-stats">
                            <div class="route-stat">
                                <i class="fas fa-route"></i>
                                <span>约25公里</span>
                            </div>
                            <div class="route-stat">
                                <i class="fas fa-mountain"></i>
                                <span>最高4415m</span>
                            </div>
                            <div class="route-stat">
                                <i class="fas fa-clock"></i>
                                <span>8-10小时</span>
                            </div>
                        </div>
                        <div class="route-description">
                            <p>海拔5396米，被称为"东方阿尔卑斯"，黑海湖周边杜鹃花海盛开，是摄影爱好者的天堂。</p>
                        </div>
                        <div class="route-tags">
                            <span class="route-tag">雪山</span>
                            <span class="route-tag">花海</span>
                            <span class="route-tag">摄影</span>
                        </div>
                    </div>
                    <div class="route-card-action">
                        <i class="fas fa-external-link-alt"></i>
                        <span>点击查看轨迹</span>
                    </div>
                </div>

                <!-- Day 4 阿布吉措轨迹 -->
                <div class="track-route-card" onclick="showTrackRoute('abuji-cuo', 'https://www.2bulu.com/track/t-SpUDkvjDq13p%252FR2KBg5Tzw%253D%253D.htm')">
                    <div class="route-card-header">
                        <div class="route-day">Day 4</div>
                        <div class="route-title">阿布吉措徒步</div>
                    </div>
                    <div class="route-card-image">
                        <img src="https://aos-comment.amap.com/B0377004JZ/comment/content_media_external_images_media_100000959_1730773695144_47119914.jpg" alt="阿布吉措" style="width: 100%; height: 200px; object-fit: cover; border-radius: 10px;">
                    </div>
                    <div class="route-card-info">
                        <div class="route-stats">
                            <div class="route-stat">
                                <i class="fas fa-route"></i>
                                <span>约12公里</span>
                            </div>
                            <div class="route-stat">
                                <i class="fas fa-mountain"></i>
                                <span>最高4200m</span>
                            </div>
                            <div class="route-stat">
                                <i class="fas fa-clock"></i>
                                <span>6-7小时</span>
                            </div>
                        </div>
                        <div class="route-description">
                            <p>海拔4200米的高山圣湖，湖水清澈如镜，周围高山牧场风光旖旎，是徒步和摄影的绝佳地点。</p>
                        </div>
                        <div class="route-tags">
                            <span class="route-tag">圣湖</span>
                            <span class="route-tag">高原</span>
                            <span class="route-tag">徒步</span>
                        </div>
                    </div>
                    <div class="route-card-action">
                        <i class="fas fa-external-link-alt"></i>
                        <span>点击查看轨迹</span>
                    </div>
                </div>
            </div>

            <!-- 轨迹地图显示区域 -->
            <div class="track-map-display" id="trackMapDisplay" style="display: none;">
                <div class="track-map-header">
                    <h3 id="trackMapTitle">徒步轨迹地图</h3>
                    <button class="close-track-btn" onclick="closeTrackMap()">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                <div class="track-map-container">
                    <iframe 
                        id="trackMapIframe"
                        src=""
                        title="徒步轨迹地图"
                        width="100%" 
                        height="600"
                        frameborder="0"
                        allowfullscreen>
                    </iframe>
                </div>
                <div class="track-map-footer">
                    <div class="track-map-actions">
                        <a href="javascript:void(0)" id="fullTrackLink" target="_blank" class="full-track-btn" onclick="openFullTrack()">
                            <i class="fas fa-external-link-alt"></i>
                            在新窗口打开完整轨迹网页
                        </a>
                        <button class="download-track-btn" onclick="downloadCurrentTrack()">
                            <i class="fas fa-download"></i>
                            下载轨迹文件
                        </button>
                        <button class="share-track-btn" onclick="shareCurrentTrack()">
                            <i class="fas fa-share-alt"></i>
                            分享轨迹
                        </button>
                    </div>

                    <div class="track-map-info">
                        <p><i class="fas fa-info-circle"></i> 提示：点击上方按钮可在新窗口中查看完整的轨迹网页，包含详细的GPS数据、标注点、评论等信息。</p>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <script>
        // 滚动进度条
        window.addEventListener('scroll', () => {
            const scrolled = (window.scrollY / (document.documentElement.scrollHeight - window.innerHeight)) * 100;
            document.querySelector('.scroll-indicator').style.width = scrolled + '%';
        });

        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });



        // 路线规划数据
        const routeData = {
            '丽江古城': { lat: 26.872039, lng: 100.233949 },
            '虎跳峡': { lat: 27.188942, lng: 100.114236 },
            '哈巴雪山': { lat: 27.3, lng: 100.1 },
            '香格里拉': { lat: 27.810532, lng: 99.708514 },
            '阿布吉措': { lat: 27.8, lng: 99.7 }
        };

        // 路线规划
        async function showRoute(from, to) {
            const routeMap = document.getElementById('routeMap');
            const routeResult = document.getElementById('routeResult');
            const routeLoading = document.getElementById('routeLoading');
            const routePlaceholder = document.getElementById('routePlaceholder');
            const routeTitle = document.getElementById('routeTitle');
            const routeDetails = document.getElementById('routeDetails');
            const mapLink = document.getElementById('mapLink');

            // 显示加载状态
            routePlaceholder.style.display = 'none';
            routeResult.style.display = 'none';
            routeLoading.style.display = 'block';

            try {
                // 获取起点和终点的坐标
                const fromCoord = routeData[from];
                const toCoord = routeData[to];

                if (!fromCoord || !toCoord) {
                    throw new Error('无法获取坐标信息');
                }

                // 模拟路线规划API调用
                const routeInfo = await simulateRoutePlanning(from, to, fromCoord, toCoord);

                // 显示路线结果
                routeTitle.textContent = `${from} → ${to}`;
                routeDetails.innerHTML = `
                    <div style="background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px;">
                        <h4 style="color: #667eea; margin-bottom: 10px;"><i class="fas fa-car"></i> 驾车路线</h4>
                        <p><strong>距离：</strong>${routeInfo.distance}</p>
                        <p><strong>预计时间：</strong>${routeInfo.duration}</p>
                        <p><strong>路线：</strong>${routeInfo.route}</p>
                    </div>
                    <div style="background: #f8f9fa; padding: 15px; border-radius: 8px;">
                        <h4 style="color: #667eea; margin-bottom: 10px;"><i class="fas fa-bus"></i> 公共交通</h4>
                        <p><strong>建议：</strong>${routeInfo.publicTransport}</p>
                        <p><strong>注意事项：</strong>${routeInfo.notes}</p>
                    </div>
                `;

                // 设置高德地图链接
                const mapUrl = `https://uri.amap.com/navigation?from=${fromCoord.lng},${fromCoord.lat},${encodeURIComponent(from)}&to=${toCoord.lng},${toCoord.lat},${encodeURIComponent(to)}&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0`;
                const webMapUrl = `https://www.amap.com/dir/${fromCoord.lng},${fromCoord.lat}/${toCoord.lng},${toCoord.lat}`;
                const searchUrl = `https://www.amap.com/search?query=${encodeURIComponent(from + '到' + to)}`;
                
                mapLink.href = mapUrl;
                document.getElementById('webMapLink').href = webMapUrl;
                document.getElementById('searchLink').href = searchUrl;
                
                // 添加点击事件处理
                mapLink.onclick = function(e) {
                    e.preventDefault();
                    window.open(mapUrl, '_blank');
                };
                
                document.getElementById('webMapLink').onclick = function(e) {
                    e.preventDefault();
                    window.open(webMapUrl, '_blank');
                };
                
                document.getElementById('searchLink').onclick = function(e) {
                    e.preventDefault();
                    window.open(searchUrl, '_blank');
                };

                // 显示结果
                routeLoading.style.display = 'none';
                routeResult.style.display = 'block';

            } catch (error) {
                console.error('路线规划失败:', error);
                routeLoading.style.display = 'none';
                routePlaceholder.style.display = 'block';
                alert('路线规划失败，请稍后重试');
            }
        }

        // 模拟路线规划API
        function simulateRoutePlanning(from, to, fromCoord, toCoord) {
            return new Promise((resolve) => {
                setTimeout(() => {
                    const routes = {
                        '丽江古城-虎跳峡': {
                            distance: '约85公里',
                            duration: '约2小时',
                            route: '丽江古城 → G214国道 → 虎跳峡镇 → 虎跳峡景区',
                            publicTransport: '建议拼车或包车前往，也可乘坐丽江到香格里拉的班车在虎跳峡下车',
                            notes: '虎跳峡段山路较多，注意安全驾驶'
                        },
                        '虎跳峡-哈巴雪山': {
                            distance: '约45公里',
                            duration: '约1.5小时',
                            route: '虎跳峡 → 东环线 → 哈巴村 → 哈巴雪山',
                            publicTransport: '建议包车前往，哈巴村有住宿和向导服务',
                            notes: '高海拔地区，注意高原反应，建议提前适应'
                        },
                        '哈巴雪山-香格里拉': {
                            distance: '约120公里',
                            duration: '约3小时',
                            route: '哈巴雪山 → 东环线 → 香格里拉市区',
                            publicTransport: '可乘坐班车或包车前往',
                            notes: '途经高海拔地区，注意保暖和适应高原'
                        },
                        '香格里拉-阿布吉措': {
                            distance: '约60公里',
                            duration: '约1.5小时',
                            route: '香格里拉 → 小中甸镇 → 阿布吉措景区',
                            publicTransport: '建议包车前往，景区内有营地住宿',
                            notes: '高海拔徒步，建议请向导，注意天气变化'
                        }
                    };

                    const routeKey = `${from}-${to}`;
                    const reverseKey = `${to}-${from}`;
                    
                    const routeInfo = routes[routeKey] || routes[reverseKey] || {
                        distance: '约100公里',
                        duration: '约2.5小时',
                        route: `${from} → ${to}`,
                        publicTransport: '建议包车或拼车前往',
                        notes: '请提前规划路线，注意安全'
                    };

                    resolve(routeInfo);
                }, 1000); // 模拟1秒延迟
            });
        }

        // 页面加载动画
        document.addEventListener('DOMContentLoaded', () => {
            const elements = document.querySelectorAll('.fade-in-up');
            const observer = new IntersectionObserver((entries) => {
                entries.forEach(entry => {
                    if (entry.isIntersecting) {
                        entry.target.style.opacity = '1';
                        entry.target.style.transform = 'translateY(0)';
                    }
                });
            });

            elements.forEach(el => {
                el.style.opacity = '0';
                el.style.transform = 'translateY(30px)';
                el.style.transition = 'opacity 0.6s ease-out, transform 0.6s ease-out';
                observer.observe(el);
            });
        });

        // 景点卡片悬停效果
        document.querySelectorAll('.attraction-card').forEach(card => {
            card.addEventListener('mouseenter', function() {
                this.style.transform = 'translateY(-10px) scale(1.02)';
            });
            
            card.addEventListener('mouseleave', function() {
                this.style.transform = 'translateY(0) scale(1)';
            });
        });

        // 轨迹路线图功能
        function downloadTrack() {
            // 模拟下载轨迹文件
            const link = document.createElement('a');
            link.href = 'data:text/plain;charset=utf-8,' + encodeURIComponent('丽江5日游徒步轨迹数据\n\n包含虎跳峡、哈巴雪山、阿布吉措等经典徒步路线的GPS轨迹数据\n\n轨迹来源：2bulu.com\n\n注意：请在实际徒步时注意安全，建议请专业向导陪同。');
            link.download = '丽江5日游徒步轨迹.txt';
            link.click();
        }

        function shareTrack() {
            // 模拟分享功能
            const shareData = {
                title: '丽江5日游徒步轨迹路线图',
                text: '包含虎跳峡、哈巴雪山、阿布吉措等经典徒步路线的GPS轨迹数据',
                url: 'https://www.2bulu.com/track/t-vm8p0U%2BnQVrp%252FR2KBg5Tzw%253D%253D.htm'
            };

            if (navigator.share) {
                navigator.share(shareData);
            } else {
                // 复制链接到剪贴板
                navigator.clipboard.writeText(shareData.url).then(() => {
                    alert('轨迹链接已复制到剪贴板！');
                }).catch(() => {
                    // 降级方案
                    const textArea = document.createElement('textarea');
                    textArea.value = shareData.url;
                    document.body.appendChild(textArea);
                    textArea.select();
                    document.execCommand('copy');
                    document.body.removeChild(textArea);
                    alert('轨迹链接已复制到剪贴板！');
                });
            }
        }

        // 轨迹地图相关函数
        let currentTrackUrl = '';
        let currentRouteId = '';

        function showTrackRoute(routeId, trackUrl) {
            const trackMapDisplay = document.getElementById('trackMapDisplay');
            const trackMapIframe = document.getElementById('trackMapIframe');
            const trackMapTitle = document.getElementById('trackMapTitle');
            
            // 保存当前轨迹信息
            currentTrackUrl = trackUrl;
            currentRouteId = routeId;
            
            // 调试信息
            console.log('轨迹信息已更新:', {
                routeId: routeId,
                trackUrl: trackUrl,
                currentTrackUrl: currentTrackUrl,
                currentRouteId: currentRouteId
            });
            
            // 设置标题
            const routeTitles = {
                'tiger-leap': 'Day 2 - 虎跳峡高路徒步轨迹',
                'haba-west': 'Day 3 - 哈巴西坡-黑海湖徒步轨迹',
                'abuji-cuo': 'Day 4 - 阿布吉措徒步轨迹'
            };
            
            trackMapTitle.textContent = routeTitles[routeId] || '徒步轨迹地图';
            
            // 设置iframe源
            trackMapIframe.src = trackUrl;
            
            // 显示轨迹地图
            trackMapDisplay.style.display = 'block';
            
            // 滚动到轨迹地图
            trackMapDisplay.scrollIntoView({ behavior: 'smooth', block: 'start' });
        }

        function closeTrackMap() {
            const trackMapDisplay = document.getElementById('trackMapDisplay');
            const trackMapIframe = document.getElementById('trackMapIframe');
            
            // 隐藏轨迹地图
            trackMapDisplay.style.display = 'none';
            
            // 清空iframe源
            trackMapIframe.src = '';
            
            // 清空当前轨迹信息
            currentTrackUrl = '';
            currentRouteId = '';
        }

        function downloadCurrentTrack() {
            if (!currentTrackUrl) {
                alert('请先选择一个轨迹路线');
                return;
            }
            
            // 模拟下载轨迹文件
            const routeNames = {
                'tiger-leap': '虎跳峡高路徒步',
                'haba-west': '哈巴西坡-黑海湖',
                'abuji-cuo': '阿布吉措徒步'
            };
            
            const fileName = `${routeNames[currentRouteId] || '徒步轨迹'}_${new Date().toISOString().split('T')[0]}.txt`;
            const content = `徒步轨迹数据\n\n路线：${routeNames[currentRouteId] || '未知路线'}\n轨迹链接：${currentTrackUrl}\n\n注意：请在实际徒步时注意安全，建议请专业向导陪同。`;
            
            const link = document.createElement('a');
            link.href = 'data:text/plain;charset=utf-8,' + encodeURIComponent(content);
            link.download = fileName;
            link.click();
        }

        function openFullTrack() {
            if (!currentTrackUrl) {
                alert('请先选择一个轨迹路线');
                return;
            }
            
            // 直接在新窗口打开轨迹网页
            window.open(currentTrackUrl, '_blank');
        }

        function shareCurrentTrack() {
            if (!currentTrackUrl) {
                alert('请先选择一个轨迹路线');
                return;
            }
            
            const routeNames = {
                'tiger-leap': '虎跳峡高路徒步',
                'haba-west': '哈巴西坡-黑海湖',
                'abuji-cuo': '阿布吉措徒步'
            };
            
            const shareData = {
                title: `${routeNames[currentRouteId] || '徒步轨迹'} - 丽江5日游`,
                text: `查看${routeNames[currentRouteId] || '徒步轨迹'}的详细GPS轨迹数据`,
                url: currentTrackUrl
            };

            if (navigator.share) {
                navigator.share(shareData);
            } else {
                // 复制链接到剪贴板
                navigator.clipboard.writeText(currentTrackUrl).then(() => {
                    alert('轨迹链接已复制到剪贴板！');
                }).catch(() => {
                    // 降级方案
                    const textArea = document.createElement('textarea');
                    textArea.value = currentTrackUrl;
                    document.body.appendChild(textArea);
                    textArea.select();
                    document.execCommand('copy');
                    document.body.removeChild(textArea);
                    alert('轨迹链接已复制到剪贴板！');
                });
            }
        }
    </script>
</body>
</html> 